

<!--
 * @Description: 乳腺CR
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
-->
<template>
  <div class="content">
    <!-- 1.IP暗噪声: -->
    <div id="table1">
      <div class="innertitle">
        1.IP暗噪声:
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td>IP板序列编号</td>
          <td>影像质量</td>
          <td>暗噪声指示值</td>
          <td>厂家保证值</td>
        </tr>
        <tr>
          <td><el-input v-model="form1.boardNumber_1" /></td>
          <td>
            <el-radio-group v-model="form1.quality_1">
              <el-radio v-for="quality in qualityList" :key="quality.value" :label="quality.value">{{ quality.label }}</el-radio>
            </el-radio-group>
          </td>
          <td><el-input v-model="form1.indicatedValue_1" /></td>
          <td rowspan="2"><el-input v-model="form1.guaranteedValue" /></td>
        </tr>
        <tr>
          <td><el-input v-model="form1.boardNumber_2" /></td>
          <td>
            <el-radio-group v-model="form1.quality_2">
              <el-radio v-for="quality in qualityList" :key="quality.value" :label="quality.value">{{ quality.label }}</el-radio>
            </el-radio-group>
          </td>
          <td><el-input v-model="form1.indicatedValue_2" /></td>
        </tr>
        <!-- <tr>
          <td><el-input v-model="form1.boardNumber_3" /></td>
          <td>
            <el-radio-group v-model="form1.quality_3">
              <el-radio v-for="quality in qualityList" :key="quality.value" :label="quality.value">{{ quality.label }}</el-radio>
            </el-radio-group>
          </td>
          <td><el-input v-model="form1.indicatedValue_3" /></td>
        </tr> -->
      </table>
    </div>

    <!-- 2.IP 响应线性: -->
    <div id="table2">
      <div class="innertitle">
        2.IP 响应线性:
         <!-- (<el-checkbox v-model="form2.testState">状态检测无此项</el-checkbox>
        <el-checkbox v-model="form2.notHave">设备不具备预处理影像程序</el-checkbox>) -->
      </div>
      <div class="tip-30">
        预置条件:
        <el-input v-model="form2.tubeVoltage" class="input-line"/>kV /
        <el-input v-model="form2.focus" class="input-line"/>焦点
        <span style="margin-left: 50px;">靶/滤过：</span>
        <el-select v-model="form2.target" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.target_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        /
        <el-select v-model="form2.filtration" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.filtration_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        <span style="margin-left: 50px;">模体厚度:4cm</span>
        <span style="margin-left: 50px;">校准因子:</span>
        <el-input v-model="form2.calibrationFactor" style="width:50px;"></el-input>
      </div>
      <!-- <div class="tip-30">
        焦点状态: <el-radio-group v-model="form2.focusType">
          <el-radio :label="1">大焦点</el-radio>
          <el-radio :label="2">小焦点</el-radio>
        </el-radio-group>，
        滤线栅: <el-radio-group v-model="form2.filterGrid">
          <el-radio :label="true">有</el-radio>
          <el-radio :label="false">无</el-radio>
        </el-radio-group>，
        压迫器: <el-radio-group v-model="form2.compressor">
          <el-radio :label="true">有</el-radio>
          <el-radio :label="false">无</el-radio>
        </el-radio-group>
      </div> -->
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td colspan="2">预置条件,mAs</td>
          <td><el-input v-model="form2.milliampereSecond_1" /></td>
          <td><el-input v-model="form2.milliampereSecond_2" /></td>
          <td><el-input v-model="form2.milliampereSecond_3" /></td>
          <td><el-input v-model="form2.milliampereSecond_4" /></td>
          <td><el-input v-model="form2.milliampereSecond_5" /></td>
          <td><el-input v-model="form2.milliampereSecond_6" /></td>
          <td>拟合方程及<i>$R^2$</i>值</td>
        </tr>
        <tr>
          <td rowspan="2" width="80px">入射剂量<br /><i>$\mu$</i>Gy</td>
          <td width="60px">读取值</td>
          <td><el-input v-model="form2.measurementValue_1" /></td>
          <td><el-input v-model="form2.measurementValue_2" /></td>
          <td><el-input v-model="form2.measurementValue_3" /></td>
          <td><el-input v-model="form2.measurementValue_4" /></td>
          <td><el-input v-model="form2.measurementValue_5" /></td>
          <td><el-input v-model="form2.measurementValue_6" /></td>
          <td rowspan="3"><el-input v-model="form2.fittingRelevantParameters" /></td>
        </tr>
        <tr>
          <td>校准值</td>
          <td><el-input v-model="form2.calibrationValue_1" /></td>
          <td><el-input v-model="form2.calibrationValue_2" /></td>
          <td><el-input v-model="form2.calibrationValue_3" /></td>
          <td><el-input v-model="form2.calibrationValue_4" /></td>
          <td><el-input v-model="form2.calibrationValue_5" /></td>
          <td><el-input v-model="form2.calibrationValue_6" /></td>
        </tr>
        <tr>
          <td colspan="2">平均像素值</td>
          <td><el-input v-model="form2.averageValue_1" /></td>
          <td><el-input v-model="form2.averageValue_2" /></td>
          <td><el-input v-model="form2.averageValue_3" /></td>
          <td><el-input v-model="form2.averageValue_4" /></td>
          <td><el-input v-model="form2.averageValue_5" /></td>
          <td><el-input v-model="form2.averageValue_6" /></td>
        </tr>
      </table>
    </div>

    <!-- 3.IP响应均匀性、6.伪影:  -->
    <div id="table4">
      <div class="innertitle" style="position: relative;">
        3.IP响应均匀性、6.伪影: 
        <span style="position: absolute; right: 0px; top: 15px;">
          <i>$均匀性（最大偏差）= {MPV_1-MPV_2 \over 两者之间的较大者} \times 100\%$</i>
        </span>
        <!-- (<el-checkbox v-model="form4.notHave">设备不具备预处理影像程序</el-checkbox>) -->
      </div>

      <div class="tip-30">
        预置条件
        （<el-radio-group v-model="form4.exposureType">
          <el-radio :label="1">手动</el-radio>
          <el-radio :label="2">自动</el-radio>
        </el-radio-group>）：
        <el-input v-model="form4.tubeVoltage" style="width: 50px;"></el-input>kV /
        <el-input v-model="form4.tubeCurrent" style="width: 50px;"></el-input>mAs /
        <el-input v-model="form4.focus" style="width: 50px;"></el-input>焦点
        <span style="margin-left: 50px;">靶/滤过：</span>
        <el-select v-model="form4.target" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.target_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        /
        <el-select v-model="form4.filtration" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.filtration_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        <span style="margin-left: 50px;">模体厚度:4cm</span>
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td>IP 板序列编号</td>
          <td>滤线栅</td>
          <td>压迫器</td>
          <td></td>
          <td colspan="3">平均像素值 MPV</td>
          <td colspan="2">区间偏差,%</td>
          <td>均匀性,%</td>
          <td rowspan="2">影响临床影像的伪影</td>
        </tr>
        <tr>
          <td rowspan="3"><el-input v-model="form4.boardNumber" style="width: 150px;" /></td>
          <td rowspan="3">
            <el-radio-group v-model="form4.filterGrid">
              <el-radio :label="true">有</el-radio>
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
          <td rowspan="3">
            <el-radio-group v-model="form4.compressor">
              <el-radio :label="true">有</el-radio>
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
          <td>A</td>
          <td><el-input v-model="form4.valueA" style="width: 60px;" /></td>
          <td rowspan="3">经线性化处理</td>
          <td><el-input v-model="form4.valueHandleA" style="width: 60px;" /></td>
          <td>A与B</td>
          <td><el-input v-model="form4.intervalDeviationAAndB" style="width: 60px;" /></td>
          <td rowspan="3"><el-input v-model="form4.uniformity" /></td>
        </tr>
        <tr>
          <td>B</td>
          <td><el-input v-model="form4.valueB" style="width: 60px;" /></td>
          <td><el-input v-model="form4.valueHandleB" style="width: 60px;" /></td>
          <td>B与C</td>
          <td><el-input v-model="form4.intervalDeviationBAndC" style="width: 60px;" /></td>
          <td rowspan="2">
            <el-radio-group v-model="form4.haveArtifact">
              <el-radio :label="true">有</el-radio>
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
        </tr>
        <tr>
          <td>C</td>
          <td><el-input v-model="form4.valueC" style="width: 60px;" /></td>
          <td><el-input v-model="form4.valueHandleC" style="width: 60px;" /></td>
          <td>A与C</td>
          <td><el-input v-model="form4.intervalDeviationAAndC" style="width: 60px;" /></td>
        </tr>
      </table>
    </div>

    <!-- 4.IP 响应一致性: -->
    <div id="table3">
      <div class="innertitle">
        4.IP 响应一致性:
         <!-- (<el-checkbox v-model="form3.notHave">设备不具备预处理影像程序</el-checkbox>) -->
      </div>

      <div class="tip-30">
        预置条件
        （<el-radio-group v-model="form3.exposureType">
          <el-radio :label="1">手动</el-radio>
          <el-radio :label="2">自动</el-radio>
        </el-radio-group>）:
        <el-input v-model="form3.tubeVoltage" style="width: 50px;"></el-input>kV /
        <el-input v-model="form3.tubeCurrent" style="width: 50px;"></el-input>mAs /
        <el-input v-model="form3.focus" style="width: 50px;"></el-input>焦点
        <span style="margin-left: 50px;">靶/滤过：</span>
        <el-select v-model="form3.target" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.target_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        /
        <el-select v-model="form3.filtration" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.filtration_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        <span style="margin-left: 50px;">模体厚度:4cm</span>
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td>IP 板序列编号</td>
          <td>滤线栅</td>
          <td>压迫器</td>
          <td>DDI值(<el-input v-model="form3.ddiUnit" class="input-line" />)</td>
          <td>平均值(<el-input v-model="form3.averageUnit" class="input-line" />)</td>
          <td>一致性(<el-input v-model="form3.consistenceUnit" class="input-line" />)</td>
        </tr>
        <tr>
          <td><el-input v-model="form3.boardNumber_1" /></td>
          <td rowspan="3">
            <el-radio-group v-model="form3.filterGrid">
              <el-radio :label="true">有</el-radio>
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
          <td rowspan="3">
            <el-radio-group v-model="form3.compressor">
              <el-radio :label="true">有</el-radio>
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
          <td><el-input v-model="form3.ddi_1" /></td>
          <td rowspan="3"><el-input v-model="form3.average" /></td>
          <td rowspan="3"><el-input v-model="form3.consistence" /></td>
        </tr>
        <tr>
          <td><el-input v-model="form3.boardNumber_2" /></td>
          <td><el-input v-model="form3.ddi_2" /></td>
        </tr>
        <tr>
          <td><el-input v-model="form3.boardNumber_3" /></td>
          <td><el-input v-model="form3.ddi_3" /></td>
        </tr>
      </table>
    </div>

    <!-- 5.IP 擦除完全性: -->
    <div id="table5">
      <div class="innertitle">
        5.IP 擦除完全性:
      </div>

      <div class="tip-30">
        预置条件:
        <el-input v-model="form5.tubeVoltage" style="width: 50px;"></el-input>kV /
        <el-input v-model="form5.tubeCurrent" style="width: 50px;"></el-input>mAs /
        <el-input v-model="form5.focus" style="width: 50px;"></el-input>焦点
        <span style="margin-left: 50px;">靶/滤过：</span>
        <el-select v-model="form5.target" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.target_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        /
        <el-select v-model="form5.filtration" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.filtration_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        <span style="margin-left: 50px;">模体厚度:4cm</span>
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td>IP 板序列编号</td>
          <td>分区</td>
          <td colspan="3">平均像素值 MPV</td>
          <td>鬼影因子 F</td>
        </tr>
        <tr>
          <td rowspan="3"><el-input v-model="form5.boardNumber" style="width: 150px;" /></td>
          <td>1区</td>
          <td><el-input v-model="form5.value_1" /></td>
          <td rowspan="3">经线性化处理</td>
          <td><el-input v-model="form5.valueHandle_1" /></td>
          <td rowspan="3"><el-input v-model="form5.ghostFactor" /></td>
        </tr>
        <tr>
          <td>2区</td>
          <td><el-input v-model="form5.value_2" /></td>
          <td><el-input v-model="form5.valueHandle_2" /></td>
        </tr>
        <tr>
          <td>3区</td>
          <td><el-input v-model="form5.value_3" /></td>
          <td><el-input v-model="form5.valueHandle_3" /></td>
        </tr>
      </table>
    </div>

    <!-- 7.高对比度分辨力: -->
    <div id="table6">
      <div class="innertitle">
        7.高对比度分辨力:
      </div>

      <div class="tip-30">
        预置条件:
        <el-input v-model="form6.tubeVoltage" style="width: 50px;"></el-input>kV /
        <el-input v-model="form6.tubeCurrent" style="width: 50px;"></el-input>mAs
        <!-- <el-input v-model="form6.focus" style="width: 50px;"></el-input>焦点 -->
        <span style="margin-left: 50px;">靶/滤过：</span>
        <el-select v-model="form6.target" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.target_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        /
        <el-select v-model="form6.filtration" size="mini" placeholder="" class="splitselect" clearable>
          <el-option v-for="dict in dict.type.filtration_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
        </el-select>
        <span style="margin-left: 50px;">模体厚度:4cm</span>
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td>分辨力卡方向</td>
          <td>最大可分辨的线对数目，lp/mm</td>
          <td>厂家规定值lp/mm</td>
          <td>偏差%</td>
          <td><i>$f_{Nyquist}lp/mm$</i></td>
          <td>偏差%</td>
          <td>基线值lp/mm</td>
          <td>偏差%</td>
        </tr>

        <tr>
          <td>水平</td>
          <td>
            <el-input v-model="form6.contrastResolutionHigh_level" />
          </td>
          <td>
            <el-input v-model="form6.manufacturerGuaranteeValue_level" />
          </td>
          <td>
            <el-input v-model="form6.deviationLevel_1" />
          </td>
          <td>
            <el-input v-model="form6.f_value_level" />
          </td>
          <td>
            <el-input v-model="form6.deviationLevel_2" />
          </td>
          <td>
            <el-input v-model="form6.baselineValue_level" />
          </td>
          <td>
            <el-input v-model="form6.deviationLevel_3" />
          </td>
        </tr>
        <tr>
          <td>垂直</td>
          <td>
            <el-input v-model="form6.contrastResolutionHigh_vertical" />
          </td>
          <td>
            <el-input v-model="form6.manufacturerGuaranteeValue_vertical" />
          </td>
          <td>
            <el-input v-model="form6.deviationVertical_1" />
          </td>
          <td>
            <el-input v-model="form6.f_value_vertical" />
          </td>
          <td>
            <el-input v-model="form6.deviationVertical_2" />
          </td>
          <td>
            <el-input v-model="form6.baselineValue_vertical" />
          </td>
          <td>
            <el-input v-model="form6.deviationVertical_3" />
          </td>
        </tr>
      </table>

      <!-- <div class="tip-30">
        计算结果%=测量值/基线值或规定值x100%
      </div> -->
    </div>

    <!-- 8.低对比度细节: -->
    <div id="table7">
      <div class="innertitle">
        8.低对比度细节:
      </div>
      <div class="tip-30">
        预置条件
        （<el-radio-group v-model="form7.presetConditions" class="split-radio">
          <el-radio label="1" style="margin-right: 10px">手动</el-radio>
          <el-radio label="2">自动</el-radio>
        </el-radio-group>）：
        <el-input v-model="form7.tubeVoltage" class="input-line" />kV /
        <el-input v-model="form7.tubeCurrent" class="input-line" />mAs /
        <el-input v-model="form7.focus" class="input-line" />焦点，
        靶/滤过：
        <el-select v-model="form7.target" size="mini" placeholder="" style="width: 60px" class="splitselect" clearable>
          <el-option v-for="item in dict.type.target_type" :key="item.value" :label="item.label" :value="item.value">
          </el-option>
        </el-select> /
        <el-select v-model="form7.filtration" size="mini" placeholder="" style="width: 60px" class="splitselect" clearable>
          <el-option v-for="item in dict.type.filtration_type" :key="item.value" :label="item.label" :value="item.value">
          </el-option>
        </el-select>

        <span style="margin-left: 50px;">模体厚度:4cm</span>
      </div>

      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td style="width: 250px;">细节直径D,mm</td>
          <td>
            <el-input v-model="form7.diameter_1" />
          </td>
          <td>
            <el-input v-model="form7.diameter_2" />
          </td>
          <td>
            <el-input v-model="form7.diameter_3" />
          </td>
          <td>
            <el-input v-model="form7.diameter_4" />
          </td>
          <td>
            <el-input v-model="form7.diameter_5" />
          </td>
        </tr>
        <tr>
          <td>细节厚度,μm</td>
          <td>
            <el-input v-model="form7.thickness_1" />
          </td>
          <td>
            <el-input v-model="form7.thickness_2" />
          </td>
          <td>
            <el-input v-model="form7.thickness_3" />
          </td>
          <td>
            <el-input v-model="form7.thickness_4" />
          </td>
          <td>
            <el-input v-model="form7.thickness_5" />
          </td>
        </tr>
        <tr>
          <td>Cr,%</td>
          <td>
            <el-input v-model="form7.contrast_1" />
          </td>
          <td>
            <el-input v-model="form7.contrast_2" />
          </td>
          <td>
            <el-input v-model="form7.contrast_3" />
          </td>
          <td>
            <el-input v-model="form7.contrast_4" />
          </td>
          <td>
            <el-input v-model="form7.contrast_5" />
          </td>
        </tr>
      </table>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td style="width: 150px;">细节厚度，μm</td>
          <td>
            0.03
          </td>
          <td>
            0.04
          </td>
          <td>
            0.05
          </td>
          <td>
            0.06
          </td>
          <td>
            0.07
          </td>
          <td>
            0.09
          </td>
          <td>
            0.12
          </td>
          <td>
            0.15
          </td>
        </tr>
        <tr>
          <td>Cr，%</td>
          <td>
            0.52
          </td>
          <td>
            0.70
          </td>
          <td>
            0.87
          </td>
          <td>
            1.04
          </td>
          <td>
            1.22
          </td>
          <td>
            1.56
          </td>
          <td>
            2.08
          </td>
          <td>
            2.59
          </td>
        </tr>
      </table>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td style="width: 150px;">细节厚度，μm</td>
          <td>
            0.20
          </td>
          <td>
            0.25
          </td>
          <td>
            0.35
          </td>
          <td>
            0.50
          </td>
          <td>
            0.70
          </td>
          <td>
            1.00
          </td>
          <td>
            1.70
          </td>
          <td>
            2.00
          </td>
        </tr>
        <tr>
          <td>Cr，%</td>
          <td>
            3.44
          </td>
          <td>
            4.28
          </td>
          <td>
            5.94
          </td>
          <td>
            8.38
          </td>
          <td>
            11.53
          </td>
          <td>
            16.05
          </td>
          <td>
            25.73
          </td>
          <td>
            29.53
          </td>
        </tr>
      </table>
    </div>
  </div>
</template>

<script>
import {
  getInfoById12, darkNoise, response, consistence,
  artifact, completeness, high, low
} from '@/api/testItem/item12'

export default {
  name: "testItem12",
  dicts: ["target_type", "filtration_type"],
  data() {
    return {
      // 表单-1.标准照片密度
      form1: {

      },
      // 表单-2.AEC响应
      form2: {

      },
      // 3.高对比度分辨力
      form3: {

      },
      form4: {

      },
      form5: {

      },
      form6: {

      },
      form7: {

      },
      itemsId: null,
      qualityList: [
        {
          label: '全野清晰、均匀一致，无伪影',
          value: 1
        },
        {
          label: '不均匀一致或有伪影',
          value: 2
        },
      ], // 影像质量
    };
  },
  props: {
    // tab栏
    activeNameEquipment: {
      type: String,
      default: "0",
    },
    // 基本信息数据
    basicForm: {
      type: Object,
      default: () => {
        return {}
      },
    },
  },
  watch: {
    activeNameEquipment: {
      handler(val) {
        let _this = this
        this.$nextTick(() => {
          // 获取详情
          getInfoById12(this.basicForm.resultId).then(response => {
            this.itemsId = response.data?.itemsId;
            // 1.IP暗噪声
            this.form1 = response.data?.darkNoise || {};
            // 2.IP响应线性
            this.form2 = response.data?.receiverResponse || {};
            // 3.IP响应一致性
            this.form3 = response.data?.consistence || {};
            // 4.IP响应均匀性和伪影
            this.form4 = response.data?.responseUniformityArtifact || {};
            // 5.IP擦除完全性
            this.form5 = response.data?.eraseCompleteness || {};
            // 6.高对比度分辨力
            this.form6 = response.data?.contrastResolutionHigh || {};
            // 7.低对比度分辨力
            this.form7 = response.data?.contrastResolutionLow || {};

          }).catch((response) => {
            console.log("catch-->getInfoById06", response);
            this.$emit("loadingchange", true);
          });
          // 绑定请求
          let itemsLength = 7;
          for (let index = 0; index < itemsLength; index++) {

            let tableInputs = document.getElementById(`table${index + 1}`).getElementsByTagName("input");
            for (let i = 0; i < tableInputs.length; i++) {
              this.bind(tableInputs[i], () => {
                this.submitTestForm(index + 1)
              })
              // let elSelect = this.elHaveComponent(tableInputs[i]) // 获取Component
              // elSelect.$on('change', function(){
              //   _this.validate(tableInputs[i])
              //   _this.submitTestForm(index + 1)
              // })
            }
          }
        })
      },
      deep: true,
      immediate: true
    },
  },
  // updated() {
  // 	console.log("updated--this.basicInfo", this.basicInfo);
  // },
  // destroyed() {
  // 	console.log("destroyed--this.basicInfo", this.basicInfo);
  // },
  methods: {
    // 直接荧光屏透视设备专用检测项目-02
    submitTestForm(index) {
      this.$emit("loadingchange", true); /* 说明绑定成功 */
      this[`form${index}`].itemsId = this.itemsId;
      switch (index) {
        // 1.DAS动态范围。DAS对比灵敏度 伪影
        case 1:
          darkNoise(this.form1).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form1 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 2:
          response(this.form2).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form2 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 3:
          consistence(this.form3).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form3 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 4:
          artifact(this.form4).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form4 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 5:
          completeness(this.form5).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form5 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 6:
          high(this.form6).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form6 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
        case 7:
          low(this.form7).then((response) => {
            // this.$modal.msgSuccess("保存成功");
            response.data ? this.form7 = response.data : "";
            this.$emit("loadingchange", false);
          })
          break;
      }
    },
  },
};
</script>

<style lang="scss" scoped>
@import "../content.scss";
</style>
